//
//  Comman.swift
//  Weibo
//
//  Created by 张婷 on 15/10/16.
//  Copyright © 2015年 itheima. All rights reserved.
//

import UIKit

let WBApperenceTintColor = UIColor.orangeColor()

// 定义更换视图控制器通知
let WBSwitchRootviewControllerNotification = "WBSwitchRootviewControllerNotification"

///  延迟加载函数
///
///  - parameter delta:    延迟时间
///  - parameter callFunc: 延迟的操作
func delay(delta: Double, callFunc: ()->()) {
    
    dispatch_after(
        dispatch_time(DISPATCH_TIME_NOW, Int64(delta * Double(NSEC_PER_SEC))),
        dispatch_get_main_queue()) {
            
            callFunc()
    }
}
